package com.zzz.thrift.service;

import com.zzz.cloud.thrift.annotation.ThriftService;
import com.zzz.thrift.service.api.TestService;
import com.zzz.thrift.service.pojo.Data;
import org.apache.thrift.TException;

import java.util.List;

@ThriftService
public class TestServiceImpl implements TestService.Iface {

    public boolean upload(Data data) throws TException {
        System.out.println(data);
        return true;
    }

    public boolean batchUpload(List<Data> datas) throws TException {
        System.out.println(datas);
        return true;
    }

}
